//
//  AboutSetting.swift
//  YoruNeko
//
//  Created by Kotori on 2021/6/21.
//

import SwiftUI

struct AboutSetting: View {
    var width: CGFloat = UIScreen.main.bounds.width
    var height: CGFloat = UIScreen.main.bounds.height
    var body: some View {
        VStack(alignment: .leading){
            
            Image("catIcon")
                .scaleEffect(0.25)
                .frame(width: 130, height: 130, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/)
            
            VStack(alignment: .leading, spacing: 5) {
                Text("YoruNeKo")
                    .font(.largeTitle)
                    .bold()
                Text("Alpha 1.0.7 (20210708)")
                    .font(.footnote)
                    .bold()
                Text("基于创新无限的极速内核Webkit(605.1.15)")
                    .font(.caption)
                    .foregroundColor(/*@START_MENU_TOKEN@*/Color(hue: 0.631, saturation: 0.169, brightness: 0.413)/*@END_MENU_TOKEN@*/)
            }
            
            //.offset(x: /*@START_MENU_TOKEN@*/10.0/*@END_MENU_TOKEN@*/, y: /*@START_MENU_TOKEN@*/10.0/*@END_MENU_TOKEN@*/)
            Spacer()
            //用于撑开外层VStack
            Text("")
                .frame(width: width, height: /*@START_MENU_TOKEN@*/100/*@END_MENU_TOKEN@*/, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/)
        }.padding(.leading, 80.0)
        .padding(.top, 38.0)
            Spacer()
            Image("aboutImage")
                .scaleEffect(0.8)
                .frame(width: 200, height: 200, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/)
        
    }
}

struct AboutSetting_Previews: PreviewProvider {
    static var previews: some View {
        AboutSetting()
    }
}
